import { request } from '@umijs/max';

// 请求登录
export async function userLogin(body: any, options?: { [key: string]: any }) {
  return request('/erpuser/userlogin', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}